package Event.lib;

import Creature.Player;
import Event.Story;

public class spoilTakeout extends Story {
    public spoilTakeout(Player player) {
        super(player);
        eventName = "弄坏食物";
        happenText = "外卖途中，由于你骑车速度过快，将用户的外卖打翻";
        options = new String[]{"给客户赔钱", "置之不理"};
    }

    @Override
    public void eventHappen(int option) {
        switch (option) {
            case 0:
                endText = "客户接受了你的赔偿，并表示理解";
                player.setMoney(player.getMoney() - 100);
                break;
            case 1:
                endText = "事后，你发现客户给了你差评，平台将会对你进行处罚。";
                player.setMoney(player.getMoney() - 150);
                player.setSan(player.getSan() - 10);
                break;
        }
    }
}
